const MyTransform = require('./transform-my')

let ts = new MyTransform()

let str1 = '荣光无限'
console.info(Buffer.from(str1))
console.info(ts.encode(str1, 1))

let encodeBuf = ts.encode(str1, 1)
console.log(ts.decode(encodeBuf))
console.log(ts.getPackageLen(encodeBuf))
